﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Current_Bidding.aspx.cs" Inherits="E1_eMart.Current_Bidding" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Current Bidding</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <form id="form1" runat="server">
    <div id="header">
    <div id="logo">
        <a href="../index.aspx"><img src="../images/logo.png" alt="Our Logo" width="153"></a>
    </div>
    <ul id="nav">
        <li>Hello, 
                        <%if (loaiTaiKhoan == 1)
                          { %>
                            <a href="../user/Account_Management.aspx">
                                <% =account.TenTaiKhoan%> 
                            </a>
                            <%}
                          else
                          { %>
                          <a href="">
                                <% =account.TenTaiKhoan%> 
                            </a>
                            <%} %>
             </li>
        <asp:LinkButton ID="lbLogOut" runat="server" 
                onclientclick="if(!confirm('Bạn có muốn thoát không?'))return false" 
                PostBackUrl="~/Logout.aspx">Logout</asp:LinkButton>
    </ul>
    <div id="user_box">
<%if (loaiTaiKhoan == 2 || loaiTaiKhoan == 3)
          {
               %><a href="../admin/dashboard.aspx">Admin CP</a><%}
          %>

          <%if(loaiTaiKhoan == 1)
            { %>
          <a href="Account_Management.aspx">My Products</a><%
          } %>
          <%
              if (Session["username"] == null)
              {
           %>  
        <a href="../Login.aspx">Sell</a>
        <%}
              else
              {
                  if (loaiTaiKhoan == 1)
                  {
                  %>
              <a href="../submit_product.aspx">Sell</a>
              <%}
              }%>
        <a href="">Help</a>
    </div>
    <div class="clear"></div>
    <hr>
    <p style="font-size: 24px; background-color: #ff9933; font-style: oblique;">eMart Account Management</p>
</div>

<div id="main_body">
<div id="left_content">
        <div id="categories">
            <ul>
                <li><a href="AccountInfo.aspx">User Infomation</a></li>
                <li><a href="../submit_product.aspx">Submit Product</a></li>
                <li><a href="Bid_History.aspx">Bid History</a></li>
                <li><a href="Current_Bidding.aspx">Current Bidding</a></li>
                <li><a href="Account_Management.aspx">Your items</a></li>
                <li><a href="ItemsWaitingConfirm.aspx?mtk=<% =account.MaTaiKhoan%>">Items Waiting Confirm</a></li>
                <li><a href="BiddingSuccessful.aspx?mtk=<% =account.MaTaiKhoan%>">Bidding Successful</a></li>
                <li><a href="../index.aspx">Exit</a></li>
            </ul>
        </div>
</div>

<div id="center_info">
    <table class="list_item" width="100%">
        <tr>
            <p style="text-decoration: underline">Your Current Bidding</p>
        </tr>
        <tr>
            <td>STT</td>
            <td>Product Name</td>
            <td>Product State</td>
            <!--
            <td>Product Type</td>
            <td>Price begin</td>
            -->
            <td><b>Price current</b></td>
            <!--
            <td>Update Date</td>
            -->
            <td>Expiration date</td>
            <td>Description</td>
            <td></td>
            
        </tr> 
        <%for (int i = 0; i < listSanPham.Count; i++)
          { %>         
        <tr>
            <td><%=i%></td>
            <td><%=listSanPham[i].TenSanPham%></td>
            <td><%=listSanPham[i].TinhTrangSanPham.TenTinhTrangSanPham%></td>
            <!--
            <td><%//=listSanPham[i].LoaiSanPham.TenLoaiSanPham%></td>
            <td><%//=listSanPham[i].GiaKhoiDiem%></td>
            -->
            <td><b><%=listSanPham[i].GiaHienTai%></b> $</td>
            <!--
            <td><%//=listSanPham[i].NgayDang%></td>
            -->
            <td><%=listSanPham[i].NgayHetHan%></td>            
            <td><%=listSanPham[i].MoTaSanPham%></td>
            <td><a href="#">Detail</a></td>
            
        </tr>
        <%} %>
    </table>
</div> 
</div>
<div class="clear"></div>
<div id="footer" class="login">
    <hr>
    <h4>Copyright &copy; 2011 eMart Inc. All rights reserved.</h4>
    <div id="about">
        <a href="../about.html"><h3>About</h3></a>
        <a href="../about.html"><h3>Contact Us</h3></a>
    </div>
</div>
    </form>
</body>
</html>
